#include"stack  que.h"
using namespace lv;
using std::cout;
using std::endl;

void test_stack()

{
	stack<int, std::list<int>> it;

	it.push_back(1);
	it.push_back(2);
	it.push_back(2);
	it.push_back(4);
	it.pop_back();
	cout << it.top() << endl;
	cout << it.size() << endl;
}

void test_queue()
{
	queue<int> it;
	it.push_back(1);
	it.push_back(2);
	it.push_back(3);
	it.push_back(4);
	it.push_back(5);
	cout << it.front() << endl;
	cout << it.back();
	cout << it.size() << endl;
}
int main()
{

	test_queue();
	return 0;
}


